- when we tried to pull via terminal in ssh
gh auth setup-gitthis did the magic.
You're being prompted for credentials because Git needs authentication. Here are a few ways to handle this:
Option 1: Enter credentials directly
Just type your GitHub username, press Enter, then enter your Personal Access Token (not your password—GitHub no longer accepts passwords for HTTPS).
Option 2: Use SSH instead (recommended)
Switch to SSH authentication so you don't have to enter credentials each time:
git remote set-url origin git@github.com:USERNAME/REPO.git
You'll need to set up an SSH key first if you haven't.
Option 3: Cache your credentials
Store your credentials so Git remembers them:
git config --global credential.helper store
Then pull once, enter your credentials, and they'll be saved.
Or use a temporary cache (15 minutes by default):
git config --global credential.helper cache
Option 4: Use GitHub CLI
If you have gh installed:
gh auth login
This sets up authentication automatically.
Quick note: If you're pasting a token and nothing appears as you type—that's normal. The terminal hides password/token input for security. Just paste and press Enter.
Which approach would you like help setting up?
Since you're already logged in, you likely don't need to re-authenticate. Press N (or just Enter since it's the default).
The issue might be that your Git isn't using the GitHub CLI credentials. Try this:
gh auth setup-git
This configures Git to use your existing gh authentication. After that, your git pull should work without prompting for credentials.
If it still doesn't work, you can check your auth status with:
gh auth status
This will show you which account you're logged into and what permissions you have.

